package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.gulimall.product.to.MemberPriceTo;
import com.guli.gulimall.product.to.SkuFullReductionTo;
import com.guli.gulimall.product.to.SkuLadderTo;
import com.guli.gulimall.product.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 6y
 * @ClassName CouponFeignService.java
 * @Description TODO
 * @createTime 2022-04-01 19:43:00
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
	@RequestMapping("/coupon/spubounds/save")
	public R saveSpuBounds(@RequestBody SpuBoundsTo spuBounds);
	@RequestMapping("/coupon/skuladder/save")
	public R saveSkuLadder(@RequestBody SkuLadderTo skuLadder);
	@RequestMapping("/coupon/skufullreduction/save")
	public R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReduction);
	@RequestMapping("/coupon/memberprice/save")
	public R saveMemberPrices(@RequestBody List<MemberPriceTo> memberPrices);
}
